﻿@model IEnumerable<Urna_TP.Models.Votante>

@{
    ViewBag.Title = "Index";
}

<h2>Votante</h2>

<button>
    @Html.ActionLink("Agregar un nuevo votante", "Create")
</button>
<table class ="table table-striped">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.DNI)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Voto)
        </th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.DNI)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Voto)
            </td>
        </tr>
    }

</table>
